import { IsNotEmpty, IsOptional } from 'class-validator';

export class CreateRoleDto {
  @IsNotEmpty()
  code: string;

  @IsOptional()
  description?: string;

  @IsOptional()
  permissions?: string[];
}
